ostadmin: Cosmetic change for option defaults
authorColin Walters <walters@verbum.org>
Thu, 23 Aug 2012 14:45:59 +0000 (10:45 -0400)
committerColin Walters <walters@verbum.org>
Sun, 26 Aug 2012 21:34:32 +0000 (17:34 -0400)
src/ostadmin/ot-admin-builtin-deploy.c

index cc5cae8772bbbc74aceab49ca14e2929a030369d..94eadfd3f0d63b67d4076f8b53afaa720407f4a6 100644 (file)
@@ -32,10 +32,10 @@ typedef struct {
 } OtAdminDeploy;
 
 static gboolean opt_no_kernel;
-static char *opt_ostree_dir;
+static char *opt_ostree_dir = "/ostree";
 
 static GOptionEntry options[] = {
-  { "ostree-dir", 0, 0, G_OPTION_ARG_STRING, &opt_ostree_dir, "Path to OSTree root directory", NULL },
+  { "ostree-dir", 0, 0, G_OPTION_ARG_STRING, &opt_ostree_dir, "Path to OSTree root directory (default: /ostree)", NULL },
   { "no-kernel", 0, 0, G_OPTION_ARG_NONE, &opt_no_kernel, "Don't update kernel related config (initramfs, bootloader)", NULL },
   { NULL }
 };
@@ -146,9 +146,6 @@ ot_admin_builtin_deploy (int argc, char **argv, GError **error)
   const char *revision = NULL;
   __attribute__((unused)) GCancellable *cancellable = NULL;
 
-  if (!opt_ostree_dir)
-    opt_ostree_dir = "/ostree";
-
   memset (self, 0, sizeof (*self));
 
   context = g_option_context_new ("NAME [REVISION] - Check out revision NAME (or REVISION as NAME)");